package appapi.service.impl;

import appapi.entity.mqtt.Reserve;
import appapi.dao.ReserveMapper;
import appapi.service.ReserveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @version: java version 1.8
 * @Author: Ygp Work
 * @description:
 * @date: 2023-07-06 13:55
 */
@Service
public class ReserveImpl implements ReserveService {

    @Autowired
    private ReserveMapper reserveMapper;

    public Reserve getAllReserves(Long devicesId) {
        return reserveMapper.getAllReserves(devicesId);
    }

    public void addReserve(Reserve reserve) {
        reserveMapper.addReserve(reserve);
    }
}
